package com.xmb.common.dao;

import com.xmb.common.entity.XmbUserBalanceBlotter;
import com.xmb.common.entity.reward.ActivityRanking;

import java.math.BigDecimal;
import java.util.List;

public interface XmbUserBalanceBlotterMapper {
    int insert(XmbUserBalanceBlotter record);

    int insertSelective(XmbUserBalanceBlotter record);

    XmbUserBalanceBlotter selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(XmbUserBalanceBlotter record);

    int updateByPrimaryKeyWithBLOBs(XmbUserBalanceBlotter record);

    int updateByPrimaryKey(XmbUserBalanceBlotter record);

    BigDecimal getTotalBalance(Long userId);

    List<XmbUserBalanceBlotter> getBalanceList(XmbUserBalanceBlotter balanceBlotter);

    List<ActivityRanking>  getBalanceRanking(Long typeId);

    ActivityRanking getCurrentUserActivityRewardRanking(XmbUserBalanceBlotter record);
}